package com.lyncs.ods.resp;

import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import com.lyncs.ods.modules.txn.model.TagInfo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author alex
 * @date 2022-05-07 14:33
 */
@Data
@Accessors(chain = true)
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
public class SettlementBillResp {

    @ApiModelProperty("账款名称")
    private String name;

    @ApiModelProperty("交付单账款ID")
    private Long billId;

    @ApiModelProperty("交付单ID")
    private Long deliverId;

    @ApiModelProperty(value = "交付单名称")
    private String deliverName;

    @ApiModelProperty("标签信息")
    private List<TagInfo> tagInfos;

    @ApiModelProperty("账款金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty("账款信息")
    private List<FeeInfo> feeInfos;

    @Data
    @Accessors(chain = true)
    @JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
    public static class FeeInfo {

        @ApiModelProperty("款项名称")
        private String feeName;

        @ApiModelProperty("款项备注")
        private String remark;

        @ApiModelProperty("款项金额")
        private BigDecimal amount;
    }
}
